import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const warningInfo: AppRouteModule = {
  path: '/warningInfo',
  name: 'WarningInfo',
  component: LAYOUT,
  redirect: '/warningInfo/rainfall',
  meta: {
    icon: 'ion:settings-outline',
    title: '预警信息',
    orderNo: 15,
  },
  children: [
    {
      path: 'rainfall',
      name: 'RainfallPage',
      meta: {
        title: '降雨预警',
        icon: 'carbon:rain',
      },
      component: () => import('@/views/alerts/rainfall/index.vue'),
    },
    {
      path: 'river',
      name: 'RiverPage',
      meta: {
        title: '水位预警',
        icon: 'solar:water-bold',
      },
      component: () => import('@/views/alerts/river/index.vue'),
    },
    {
      path: 'warningSettings',
      name: 'WarningSettings',
      meta: {
        title: '预警设置',
        icon: 'fluent-mdl2:report-warning',
      },
      component: () => import('@/views/warningInfo/settings/index.vue'),
    },
  ],
};

export default warningInfo;
